package com.xindaoapp.henghua.protocol.model;

import org.json.JSONObject;

import com.loopj.android.http.util.MoccaRequest;
import com.loopj.android.http.util.Response.ErrorListener;
import com.loopj.android.http.util.Response.Listener;
import com.xindaoapp.henghua.entry.ArriveDataInfo;
import com.xindaoapp.henghua.utils.MoccaPreferences;

public class ArriveDataRequest extends MoccaRequest<ArriveDataInfo> {

	public ArriveDataRequest(String url, Listener<ArriveDataInfo> listener, ErrorListener errorListener) {
		super(url, listener, errorListener);
	}

	@Override
	public ArriveDataInfo parseNetworkResponse(String response) {
		try {
			MoccaPreferences.ARRIVEDATASTIME.put(new JSONObject(response).getString("currentTime"));
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}

}
